package march.firstmarch21.march01.plan1;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Reducer;
import march.firstmarch21.march01.CallsBean;

import java.io.IOException;

public class CallsReducer extends Reducer<CallsBean, NullWritable,CallsBean, NullWritable> {
    @Override
    protected void reduce(CallsBean key, Iterable<NullWritable> values, Context context) throws IOException, InterruptedException {
        // 直接写出
        for (NullWritable v:values){
            context.write(key,NullWritable.get());
        }
    }
}

